package com.team1.system.librarycredit.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.team1.system.librarycredit.mapper.LibraryCreditMapper;
import com.team1.system.librarycredit.domain.LibraryCredit;
import com.team1.system.librarycredit.service.ILibraryCreditService;

/**
 * 信用度信息管理Service业务层处理
 * 
 * @author hyy
 * @date 2023-04-09
 */
@Service
public class LibraryCreditServiceImpl implements ILibraryCreditService 
{
    @Autowired
    private LibraryCreditMapper libraryCreditMapper;

    /**
     * 查询信用度信息管理
     * 
     * @param creditId 信用度信息管理主键
     * @return 信用度信息管理
     */
    @Override
    public LibraryCredit selectLibraryCreditByCreditId(String creditId)
    {
        return libraryCreditMapper.selectLibraryCreditByCreditId(creditId);
    }

    /**
     * 查询信用度信息管理列表
     * 
     * @param libraryCredit 信用度信息管理
     * @return 信用度信息管理
     */
    @Override
    public List<LibraryCredit> selectLibraryCreditList(LibraryCredit libraryCredit)
    {
        return libraryCreditMapper.selectLibraryCreditList(libraryCredit);
    }

    /**
     * 新增信用度信息管理
     * 
     * @param libraryCredit 信用度信息管理
     * @return 结果
     */
    @Override
    public int insertLibraryCredit(LibraryCredit libraryCredit)
    {
        return libraryCreditMapper.insertLibraryCredit(libraryCredit);
    }

    /**
     * 修改信用度信息管理
     * 
     * @param libraryCredit 信用度信息管理
     * @return 结果
     */
    @Override
    public int updateLibraryCredit(LibraryCredit libraryCredit)
    {
        return libraryCreditMapper.updateLibraryCredit(libraryCredit);
    }

    /**
     * 批量删除信用度信息管理
     * 
     * @param creditIds 需要删除的信用度信息管理主键
     * @return 结果
     */
    @Override
    public int deleteLibraryCreditByCreditIds(String[] creditIds)
    {
        return libraryCreditMapper.deleteLibraryCreditByCreditIds(creditIds);
    }

    /**
     * 删除信用度信息管理信息
     * 
     * @param creditId 信用度信息管理主键
     * @return 结果
     */
    @Override
    public int deleteLibraryCreditByCreditId(String creditId)
    {
        return libraryCreditMapper.deleteLibraryCreditByCreditId(creditId);
    }
}
